//定义系统模块
var _moduals = [
	{
		key:'blog_sys',
		icon:'icon-book',
		name:'博客系统'
	},
	{
		key:'sys_mgr',
		icon:'icon-set',
		name:'系统管理'
	}
];

//定义模块菜单
var _menus = {
	'sys_mgr':[
		{	
			name:'用户权限',
			key:'user_auth',
			icon:'icon-sys',
			menus:[
				{
					name:"用户查询",
					key:'user_query',
					icon:"icon-users",
					url:"/admin/user/list",
					menus:[{
						"name":"新增/编辑用户",
						"isfun":1,
						"key":'user_add',
						"icon":"icon-add",
						"url":"/admin/user/add"
					},{
						"name":"授权角色",
						"key":'user_access',
						"isfun":1,
						"icon":"icon-auth",
						"url":"/admin/role/modifyUserRole"
					},{
						"name":"删除用户",
						"key":'user_del',
						"isfun":1,
						"icon":"icon-delete",
						"url":"/admin/user/delete"
					}]
				},
				{
					"name":"角色查询",
					key:'role_query',
					"icon":"icon-role",
					"url":"/admin/role/list",
					menus:[{
						"name":"新增/编辑角色",
						"isfun":1,
						"key":'role_add',
						"icon":"icon-add",
						"url":"/admin/role/add"
					},{
						"name":"删除角色",
						"key":'role_del',
						"isfun":1,
						"icon":"icon-delete",
						"url":"/admin/role/delete"
					}]
				},
				{
					"name":"菜单查询",
					key:'menu_query',
					"icon":"icon-menu",
					"url":"/admin/menu/list",
					menus:[{
						"name":"菜单授权",
						"key":'menu_access',
						"isfun":1,
						"icon":"icon-auth",
						"url":"/admin/menu/modifyMenuRole"
					},{
						"name":"生成菜单",
						"key":'menu_create',
						"isfun":1,
						"icon":"icon-layout-left",
						"url":"/admin/menu/create"
					}]
				},
				{
					"name":"角色与用户关系查询",
					key:'role_auth_query',
					"icon":"icon-name-cart",
					"url":"/admin/role/roleUserList",
					menus:[{
						"name":"删除",
						"key":'role_auth_del',
						"isfun":1,
						"icon":"icon-delete",
						"url":"/admin/role/delRoleUser"
					}]
				},
				{
					"name":"角色与菜单关系查询",
					key:'menu_auth_query',
					"icon":"icon-org",
					"url":"/admin/menu/roleMenuList",
					menus:[{
						"name":"删除",
						"key":'menu_auth_del',
						"isfun":1,
						"icon":"icon-delete",
						"url":"/admin/menu/delRoleMenu"
					}]
				}
			]
		},
		{	
			name:'综合管理',
			key:'multi_mgr',
			icon:'icon-sys',
			menus:[
				{
					"name":"字典查询",
					key:'dic_query',
					"icon":"icon-dic",
					"url":"/admin/dic/list",
					menus:[{
							"name":"添加/编辑分类",
							"isfun":1,
							"key":'dic_addKind',
							"icon":"icon-add",
							"url":"/admin/dic/addKind"
						},{
							"name":"添加/编辑字典",
							"isfun":1,
							"key":'dic_addItem',
							"icon":"icon-add",
							"url":"/admin/dic/addItem"
						},{
							"name":"删除",
							"key":'dic_del',
							"isfun":1,
							"icon":"icon-delete",
							"url":"/admin/menu/delRoleMenu",
					}]
				}
			]
		}
	],
	'blog_sys':[
		{
			name:'文章管理',
			key:'text_mgr',
			icon:'icon-sys',
			menus:[
				{
					name:"添加文章",
					key:'text_add',
					icon:"icon-book-add",
					url:"/admin/article/add"
				},
				{
					name:"文章查询",
					key:'text_query',
					icon:"icon-article",
					url:"/admin/article/list",
					menus:[{
						"name":"删除文章",
						"key":'text_del',
						"isfun":1,
						"icon":"icon-delete",
						"url":"/admin/article/delete"
					},{
						"name":"文件上传",
						"key":'file_upload',
						"isfun":1,
						"icon":"icon-upload",
						"url":"/template/default/admin/js/ueditor/php/controller.php"
					}]
				},
				{
					name:"标签管理",
					key:'label_query',
					icon:"icon-book-collect",
					url:"/admin/label/list",
					menus:[{
						"name":"新增/编辑标签",
						"isfun":1,
						"key":'label_add',
						"icon":"icon-edit",
						"url":"/admin/label/add"
					},{
						"name":"删除标签",
						"key":'label_del',
						"isfun":1,
						"icon":"icon-delete",
						"url":"/admin/label/delete"
					}]
				}
			]
		}
	]
}